﻿using SalesSys.DAL.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Security.AccessControl;
using System.Text;
using System.Threading.Tasks;

namespace SalesSys.DAL.Models
{
    /// <summary>
    /// 客户表
    /// </summary>
  public  class CustomerOperateRecord : DbEntityBase<Guid>
    {
      public CustomerOperateRecord()
        {
            
        }
      /// <summary>
      /// 客户
      /// </summary>
      public  Guid CustomerId{ get; set; }
      /// <summary>
      /// 操作人
      /// </summary>
      public Guid OperatorId { get; set; }
      /// <summary>
      /// 操作时间
      /// </summary>
      public DateTime OperatorTime { get; set; }
      /// <summary>
      /// 操作行为
      /// </summary>
      public string OperatorAction { get; set; }
      /// <summary>
      /// 修改前内容
      /// </summary>
      public string BeforeContent { get; set; }
      /// <summary>
      /// 修改后内容
      /// </summary>
      public string AfterContent { get; set; }
      /// <summary>
      /// 备注
      /// </summary>
      public string Remark { get; set; }
      public class Mapper : SalMapper<CustomerOperateRecord, Guid>
      {
          public Mapper()
          {
              Property(p => p.CustomerId);
              Property(p => p.OperatorId);
              Property(p => p.OperatorTime);
              Property(p => p.OperatorAction);
              Property(p => p.BeforeContent).HasMaxLength(2097152000);
              Property(p => p.AfterContent).HasMaxLength(2097152000);
              Property(p => p.Remark);
          }
      }
      
    }
}
